package com.cheng.api_getway_zuul.constarct;

/**
 * @author wangke
 */

public enum ResponseCode {
    /**
     * token为空
     */
    EMPTY(401),
    /**
     * token已过期
     */
    OVERDUE(402),
    /**
     * token已失效
     */
    INVALID(403),
    /**
     * token解析错误
     */
    FAIL(500),

    SUCCESS(1);
    public final static int FAILURE = 0;
    private Integer code;

    ResponseCode(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return this.code;
    }
}
